package ru.linnenson.darshana.application.services;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import ru.linnenson.darshana.infrastructure.persistence.models.MathTaskStore;
import ru.linnenson.darshana.infrastructure.rest.dto.MathTasksCriteria;
import ru.linnenson.darshana.infrastructure.services.ParsedPhotoDto;

public interface MathTasksStoreService {

  ParsedPhotoDto addPhoto(Integer taskId, byte[] bytes);

  String addSolutionPhoto(Integer taskId, byte[] bytes);

  void deletePhoto(Integer taskId, final String photoId);

  void deleteSolutionPhoto(Integer taskId, String photoId);

  Page<MathTaskStore> search(MathTasksCriteria criteria, Pageable pageable);
}
